﻿namespace HRM.CORE
{
    using DevExpress.Utils;
    using DevExpress.XtraBars;
    using DevExpress.XtraEditors;
    using DevExpress.XtraEditors.Controls;
    using DevExpress.XtraEditors.DXErrorProvider;
    using DevExpress.XtraEditors.Repository;
    using DevExpress.XtraGrid;
    using DevExpress.XtraGrid.Columns;
    using DevExpress.XtraGrid.Views.Grid;
    using DevExpress.XtraLayout;
    using DevExpress.XtraLayout.Utils;
    using Common.Base;
    using Common.Class; using APP.HELPER.Utils.Language; using Security.Security; using Dictionary.ERP;
    using Common.Report;
    using Dictionary;
    using HRM.CORE;
    using HRM.CORE.REPORT;
    
    
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Windows.Forms; using Common;
    using DevExpress.XtraGrid.Views.Base;

    public class xfmDeclaration : XtraForm
    {
        private Bar bar1;
        private BarDockControl barDockControlBottom;
        private BarDockControl barDockControlLeft;
        private BarDockControl barDockControlRight;
        private BarDockControl barDockControlTop;
        private BarManager barManager1;
        private BarButtonItem bbiAddHealthInsurance;
        private BarButtonItem bbiAddUnemploymentInsurance;
        private BarButtonItem bbiChangeSalary;
        private BarButtonItem bbiClose;
        private BarButtonItem bbiDecrease;
        private BarEditItem bbiFilter;
        private BarButtonItem bbiIncrease;
        private BarButtonItem bbiModify;
        private BarSubItem bbiPrint;
        private BarButtonItem bbiPrintAlreadyInsurance;
        private BarButtonItem bbiPrintAreInsurance;
        private BarButtonItem bbiPrintDeclarationInsurance;
        private BarButtonItem bbiPrintNotInsurance;
        private BarButtonItem bbiReload;
        private BarButtonItem bbiSave;
        private CalcEdit calAllowance1;
        private CalcEdit calAllowance2;
        private CalcEdit calAllowance3;
        private CalcEdit calAllowance4;
        private CalcEdit calInsuranceSalary;
        private ComboBoxEdit cboEthnic;
        private ComboBoxEdit cboHospital;
        private ComboBoxEdit cboNationality;
        private ComboBoxEdit cboPosition;
        private ComboBoxEdit cboStatus;
        private CheckEdit cheFemale;
        private CheckEdit cheMale;
        private GridColumn colDescription;
        private GridColumn colFoundation;
        private GridColumn colFromDate;
        private GridColumn colHealthInsurance;
        private GridColumn colProcessID;
        private GridColumn colSocialInsurance;
        private GridColumn colToDate;
        private IContainer components = null;
        private DateEdit dtContractFromDate;
        private DateEdit dtContractSignDate;
        private DateEdit dtIDCardDate;
        private DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider Err;
        private GridView gbList;
        private GridControl gcList;
        public DevExpress.Utils.ImageCollection imageCollection3;
        private PictureEdit imgPhoto;
        private HRM_INSURANCE_DECLARATION l_Declaration = new HRM_INSURANCE_DECLARATION();
        private HRM_EMPLOYEE l_Employee = new HRM_EMPLOYEE();
        private HRM_INSURANCE l_Insurance = new HRM_INSURANCE();
        private HRM_INSURANCE_PROCESS l_InsuranceProcess = new HRM_INSURANCE_PROCESS();
        private LayoutControl layoutControl2;
        private LayoutControl layoutControl5;
        private LayoutControlGroup layoutControlGroup2;
        private LayoutControlGroup layoutControlGroup4;
        private LayoutControlGroup layoutControlGroup5;
        private LayoutControlGroup layoutControlGroup6;
        private LayoutControlItem layoutControlItem1;
        private LayoutControlItem layoutControlItem10;
        private LayoutControlItem layoutControlItem11;
        private LayoutControlItem layoutControlItem12;
        private LayoutControlItem layoutControlItem13;
        private LayoutControlItem layoutControlItem14;
        private LayoutControlItem layoutControlItem15;
        private LayoutControlItem layoutControlItem16;
        private LayoutControlItem layoutControlItem17;
        private LayoutControlItem layoutControlItem18;
        private LayoutControlItem layoutControlItem19;
        private LayoutControlItem layoutControlItem2;
        private LayoutControlItem layoutControlItem20;
        private LayoutControlItem layoutControlItem21;
        private LayoutControlItem layoutControlItem23;
        private LayoutControlItem layoutControlItem24;
        private LayoutControlItem layoutControlItem25;
        private LayoutControlItem layoutControlItem26;
        private LayoutControlItem layoutControlItem27;
        private LayoutControlItem layoutControlItem28;
        private LayoutControlItem layoutControlItem29;
        private LayoutControlItem layoutControlItem3;
        private LayoutControlItem layoutControlItem30;
        private LayoutControlItem layoutControlItem31;
        private LayoutControlItem layoutControlItem32;
        private LayoutControlItem layoutControlItem33;
        private LayoutControlItem layoutControlItem34;
        private LayoutControlItem layoutControlItem35;
        private LayoutControlItem layoutControlItem37;
        private LayoutControlItem layoutControlItem38;
        private LayoutControlItem layoutControlItem4;
        private LayoutControlItem layoutControlItem5;
        private LayoutControlItem layoutControlItem7;
        private LayoutControlItem layoutControlItem8;
        private LayoutControlItem layoutControlItem9;
        private string m_EmployeeCode = "";
        private int m_Status = -1;
        private PanelControl pnLeft;
        private RepositoryItemCalcEdit repCalculator;
        private RepositoryItemComboBox repositoryItemComboBox1;
        private RepositoryItemImageComboBox repositoryItemImageComboBox1;
        private TextEdit txtAddress;
        private TextEdit txtCellPhone;
        private MemoEdit txtCompany;
        private TextEdit txtContactAddress;
        private TextEdit txtContractCode;
        private TextEdit txtContractType;
        private MemoEdit txtDescription;
        private TextEdit txtHealthInsuranceCode;
        private TextEdit txtHomePhone;
        private TextEdit txtID;
        private TextEdit txtIDCard;
        private TextEdit txtIDCardPlace;
        private TextEdit txtInsuranceCode;
        private TextEdit txtInterest;
        private TextEdit txtMainAddress;
        private TextEdit txtName;
        private xucDateEdit xdeBirthday;
        private HRM.CORE.xuc02aTBH xuc02aTBH;
        private HRM.CORE.xuc03bTBH xuc03bTBH;
        private HRM.CORE.xucCreateInsurance xucCreateInsurance;
        private xucListInsurance xucListInsurance1;

        public xfmDeclaration()
        {
            this.InitializeComponent();
            this.Reload();
        }

        private void AddComboboxEdit(ComboBoxEdit combo, string str)
        {
            combo.Properties.Items.Add(str);
            combo.SelectedIndex = combo.Properties.Items.Count - 1;
        }

        private void bbiAddHealthInsurance_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmAddHealthInsurance(this.xucListInsurance1.GetDataTable()).ShowDialog();
        }

        private void bbiAddUnemploymentInsurance_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmAddUnemploymentInsurance(this.xucListInsurance1.GetDataTable()).ShowDialog();
        }

        private void bbiChangeSalary_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmChangeSalary(this.xucListInsurance1.GetDataTable()).ShowDialog();
        }

        private void bbiClose_ItemClick(object sender, ItemClickEventArgs e)
        {
            base.Close();
        }

        private void bbiDecrease_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmDecrease(this.xucListInsurance1.GetDataTable()).ShowDialog();
        }

        private void bbiFilter_EditValueChanged(object sender, EventArgs e)
        {
            this.m_Status = int.Parse(this.bbiFilter.EditValue.ToString()) - 1;
            if (this.m_Status < -1)
            {
                this.m_Status = -1;
            }
            this.LoadData();
        }

        private void bbiIncrease_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmIncrease(this.xucListInsurance1.GetDataTable()).ShowDialog();
        }

        private void bbiModify_ItemClick(object sender, ItemClickEventArgs e)
        {
            new xfmModify(this.xucListInsurance1.GetDataTable()).ShowDialog();
        }

        private void bbiPrint_ItemClick(object sender, ItemClickEventArgs e)
        {
            xfmReport report = new xfmReport("Hợp Đồng Lao Động");
            if (e.Item == this.bbiPrintDeclarationInsurance)
            {
                if (!this.l_Declaration.Exist(this.txtID.Text) || !this.l_Declaration.ExistEmployeeCode(this.m_EmployeeCode))
                {
                    if (XtraMessageBox.Show("Dữ liệu chưa được lưu.\nBạn c\x00f3 muốn lưu lại dữ liệu kh\x00f4ng?", "Th\x00f4ng b\x00e1o", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.No)
                    {
                        XtraMessageBox.Show("Bạn kh\x00f4ng thể thực hiện chức năng n\x00e0y trước khi lưu lại dữ liệu tờ khai tham gia BHXH, BHYT của nh\x00e2n vi\x00ean!", "Th\x00f4ng b\x00e1o", MessageBoxButtons.OKCancel, MessageBoxIcon.Asterisk);
                        return;
                    }
                    if (!this.Save())
                    {
                        return;
                    }
                }
                rptA01TS xtraReport = new rptA01TS(this.m_EmployeeCode);
                report.SetTitle("Tờ khai tham gia BHXH, BHYT");
                report.ShowPrintPreview(xtraReport);
            }
            else
            {
                rptListInsurance insurance;
                if (e.Item == this.bbiPrintAreInsurance)
                {
                    insurance = new rptListInsurance(0);
                    report.SetTitle("Danh s\x00e1ch lao động đang tham gia BHXH, BHYT");
                    report.ShowPrintPreview(insurance);
                }
                else if (e.Item == this.bbiPrintNotInsurance)
                {
                    insurance = new rptListInsurance(1);
                    report.SetTitle("Danh s\x00e1ch lao động chưa tham gia BHXH, BHYT");
                    report.ShowPrintPreview(insurance);
                }
                else if (e.Item == this.bbiPrintAlreadyInsurance)
                {
                    insurance = new rptListInsurance(2);
                    report.SetTitle("Danh s\x00e1ch lao động tạm ngưng tham gia BHXH, BHYT");
                    report.ShowPrintPreview(insurance);
                }
            }
        }

        private void bbiReload_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Reload();
        }

        private void bbiSave_ItemClick(object sender, ItemClickEventArgs e)
        {
            this.Save();
        }

        private void cbo_ButtonClick(object sender, ButtonPressedEventArgs e)
        {
            xfmPositionAdd.AddedEventHander hander = null;
            FormClosingEventHandler handler = null;
            if (e.Button.Kind == ButtonPredefines.Glyph)
            {
                ComboBoxEdit edit = sender as ComboBoxEdit;
                string name = edit.Name;
                if (name != null)
                {
                    if (!(name == "cboPosition"))
                    {
                        if (name == "cboHospital")
                        {
                            xfmHospital hospital = new xfmHospital();
                            if (handler == null)
                            {
                                handler = (s, i) => new DIC_HOSPITAL().AddComboEdit(this.cboHospital);
                            }
                            hospital.FormClosing += handler;
                            hospital.ShowDialog();
                        }
                    }
                    else
                    {
                        xfmPositionAdd add = new xfmPositionAdd(Actions.Add);
                        if (hander == null)
                        {
                            hander = (s, i) => this.AddComboboxEdit(this.cboPosition, i.PositionName);
                        }
                        add.Added += hander;
                        add.ShowDialog();
                    }
                }
            }
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void gbList_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Delete)
            {
                this.gbList.DeleteSelectedRows();
            }
            if (e.KeyCode == Keys.F5)
            {
                this.Reload();
            }
            if (e.KeyCode == Keys.Escape)
            {
                this.gbList.OptionsView.NewItemRowPosition = NewItemRowPosition.Bottom;
            }
        }

        private HRM_EMPLOYEE InitClass(string EmployeeCode)
        {
            HRM_EMPLOYEE hrm_employee = new HRM_EMPLOYEE();
            hrm_employee.Get(EmployeeCode);
            hrm_employee.BirthdayDay = this.xdeBirthday.Day;
            hrm_employee.BirthdayMonth = this.xdeBirthday.Month;
            hrm_employee.BirthdayYear = this.xdeBirthday.Year;
            hrm_employee.MainAddress = this.txtMainAddress.Text;
            hrm_employee.ContactAddress = this.txtContactAddress.Text;
            hrm_employee.CellPhone = this.txtCellPhone.Text;
            hrm_employee.HomePhone = this.txtHomePhone.Text;
            hrm_employee.Nationality = this.cboNationality.Text;
            hrm_employee.Ethnic = this.cboEthnic.Text;
            hrm_employee.IDCard = this.txtIDCard.Text;
            hrm_employee.IDCardDate = this.dtIDCardDate.DateTime;
            hrm_employee.IDCardPlace = this.txtIDCardPlace.Text;
            hrm_employee.Position = this.cboPosition.Text;
            hrm_employee.InsuranceSalary = decimal.Parse(this.calInsuranceSalary.EditValue.ToString());
            hrm_employee.Allowance1 = decimal.Parse(this.calAllowance1.EditValue.ToString());
            hrm_employee.Allowance2 = decimal.Parse(this.calAllowance2.EditValue.ToString());
            hrm_employee.Allowance3 = decimal.Parse(this.calAllowance3.EditValue.ToString());
            hrm_employee.Allowance4 = decimal.Parse(this.calAllowance4.EditValue.ToString());
            hrm_employee.InsuranceCode = this.txtInsuranceCode.Text;
            hrm_employee.HealthInsuranceCode = this.txtHealthInsuranceCode.Text;
            hrm_employee.Hospital = this.cboHospital.Text;
            hrm_employee.ContractSignDate = this.dtContractSignDate.DateTime;
            hrm_employee.ContractFromDate = this.dtContractFromDate.DateTime;
            return hrm_employee;
        }

        private void InitData()
        {
            new DIC_POSITION().AddComboEdit(this.cboPosition);
            new DIC_HOSPITAL().AddComboEdit(this.cboHospital);
        }

        private void InitializeComponent()
        {
            this.components = new Container();
            ComponentResourceManager manager = new ComponentResourceManager(typeof(xfmDeclaration));
            SerializableAppearanceObject appearance = new SerializableAppearanceObject();
            SerializableAppearanceObject obj3 = new SerializableAppearanceObject();
            SuperToolTip tip = new SuperToolTip();
            ToolTipItem item = new ToolTipItem();
            this.imageCollection3 = new DevExpress.Utils.ImageCollection(this.components);
            this.txtDescription = new MemoEdit();
            this.layoutControl2 = new LayoutControl();
            this.xdeBirthday = new xucDateEdit();
            this.cboPosition = new ComboBoxEdit();
            this.txtInterest = new TextEdit();
            this.txtHealthInsuranceCode = new TextEdit();
            this.txtInsuranceCode = new TextEdit();
            this.imgPhoto = new PictureEdit();
            this.cboStatus = new ComboBoxEdit();
            this.calAllowance4 = new CalcEdit();
            this.txtID = new TextEdit();
            this.calAllowance3 = new CalcEdit();
            this.calAllowance2 = new CalcEdit();
            this.calAllowance1 = new CalcEdit();
            this.calInsuranceSalary = new CalcEdit();
            this.txtAddress = new TextEdit();
            this.txtContractType = new TextEdit();
            this.dtContractFromDate = new DateEdit();
            this.dtContractSignDate = new DateEdit();
            this.txtContractCode = new TextEdit();
            this.txtIDCardPlace = new TextEdit();
            this.dtIDCardDate = new DateEdit();
            this.txtIDCard = new TextEdit();
            this.txtCellPhone = new TextEdit();
            this.txtHomePhone = new TextEdit();
            this.txtContactAddress = new TextEdit();
            this.txtMainAddress = new TextEdit();
            this.cboNationality = new ComboBoxEdit();
            this.cboEthnic = new ComboBoxEdit();
            this.cheFemale = new CheckEdit();
            this.cheMale = new CheckEdit();
            this.txtName = new TextEdit();
            this.txtCompany = new MemoEdit();
            this.cboHospital = new ComboBoxEdit();
            this.layoutControlGroup2 = new LayoutControlGroup();
            this.layoutControlItem3 = new LayoutControlItem();
            this.layoutControlItem4 = new LayoutControlItem();
            this.layoutControlItem5 = new LayoutControlItem();
            this.layoutControlItem7 = new LayoutControlItem();
            this.layoutControlItem9 = new LayoutControlItem();
            this.layoutControlItem10 = new LayoutControlItem();
            this.layoutControlItem11 = new LayoutControlItem();
            this.layoutControlItem12 = new LayoutControlItem();
            this.layoutControlItem13 = new LayoutControlItem();
            this.layoutControlItem14 = new LayoutControlItem();
            this.layoutControlItem15 = new LayoutControlItem();
            this.layoutControlItem16 = new LayoutControlItem();
            this.layoutControlItem17 = new LayoutControlItem();
            this.layoutControlItem18 = new LayoutControlItem();
            this.layoutControlItem19 = new LayoutControlItem();
            this.layoutControlItem20 = new LayoutControlItem();
            this.layoutControlItem21 = new LayoutControlItem();
            this.layoutControlItem23 = new LayoutControlItem();
            this.layoutControlItem26 = new LayoutControlItem();
            this.layoutControlItem27 = new LayoutControlItem();
            this.layoutControlItem28 = new LayoutControlItem();
            this.layoutControlItem29 = new LayoutControlItem();
            this.layoutControlItem30 = new LayoutControlItem();
            this.layoutControlItem31 = new LayoutControlItem();
            this.layoutControlItem32 = new LayoutControlItem();
            this.layoutControlItem25 = new LayoutControlItem();
            this.layoutControlItem8 = new LayoutControlItem();
            this.layoutControlItem33 = new LayoutControlItem();
            this.layoutControlItem1 = new LayoutControlItem();
            this.layoutControlItem2 = new LayoutControlItem();
            this.layoutControlItem34 = new LayoutControlItem();
            this.layoutControlItem35 = new LayoutControlItem();
            this.layoutControlItem38 = new LayoutControlItem();
            this.pnLeft = new PanelControl();
            this.xucListInsurance1 = new xucListInsurance();
            this.barManager1 = new BarManager(this.components);
            this.bar1 = new Bar();
            this.bbiFilter = new BarEditItem();
            this.repositoryItemImageComboBox1 = new RepositoryItemImageComboBox();
            this.bbiSave = new BarButtonItem();
            this.bbiPrint = new BarSubItem();
            this.bbiPrintDeclarationInsurance = new BarButtonItem();
            this.bbiPrintAreInsurance = new BarButtonItem();
            this.bbiPrintNotInsurance = new BarButtonItem();
            this.bbiPrintAlreadyInsurance = new BarButtonItem();
            this.bbiIncrease = new BarButtonItem();
            this.bbiDecrease = new BarButtonItem();
            this.bbiChangeSalary = new BarButtonItem();
            this.bbiAddHealthInsurance = new BarButtonItem();
            this.bbiAddUnemploymentInsurance = new BarButtonItem();
            this.bbiModify = new BarButtonItem();
            this.bbiReload = new BarButtonItem();
            this.bbiClose = new BarButtonItem();
            this.barDockControlTop = new BarDockControl();
            this.barDockControlBottom = new BarDockControl();
            this.barDockControlLeft = new BarDockControl();
            this.barDockControlRight = new BarDockControl();
            this.repositoryItemComboBox1 = new RepositoryItemComboBox();
            this.layoutControl5 = new LayoutControl();
            this.gcList = new GridControl();
            this.gbList = new GridView();
            this.colProcessID = new GridColumn();
            this.colFromDate = new GridColumn();
            this.colToDate = new GridColumn();
            this.colDescription = new GridColumn();
            this.colFoundation = new GridColumn();
            this.repCalculator = new RepositoryItemCalcEdit();
            this.colSocialInsurance = new GridColumn();
            this.colHealthInsurance = new GridColumn();
            this.layoutControlGroup5 = new LayoutControlGroup();
            this.layoutControlGroup4 = new LayoutControlGroup();
            this.layoutControlItem37 = new LayoutControlItem();
            this.layoutControlGroup6 = new LayoutControlGroup();
            this.layoutControlItem24 = new LayoutControlItem();
            this.Err = new DevExpress.XtraEditors.DXErrorProvider.DXErrorProvider(this.components);
            this.imageCollection3.BeginInit();
            this.txtDescription.Properties.BeginInit();
            this.layoutControl2.BeginInit();
            this.layoutControl2.SuspendLayout();
            this.cboPosition.Properties.BeginInit();
            this.txtInterest.Properties.BeginInit();
            this.txtHealthInsuranceCode.Properties.BeginInit();
            this.txtInsuranceCode.Properties.BeginInit();
            this.imgPhoto.Properties.BeginInit();
            this.cboStatus.Properties.BeginInit();
            this.calAllowance4.Properties.BeginInit();
            this.txtID.Properties.BeginInit();
            this.calAllowance3.Properties.BeginInit();
            this.calAllowance2.Properties.BeginInit();
            this.calAllowance1.Properties.BeginInit();
            this.calInsuranceSalary.Properties.BeginInit();
            this.txtAddress.Properties.BeginInit();
            this.txtContractType.Properties.BeginInit();
            this.dtContractFromDate.Properties.VistaTimeProperties.BeginInit();
            this.dtContractFromDate.Properties.BeginInit();
            this.dtContractSignDate.Properties.VistaTimeProperties.BeginInit();
            this.dtContractSignDate.Properties.BeginInit();
            this.txtContractCode.Properties.BeginInit();
            this.txtIDCardPlace.Properties.BeginInit();
            this.dtIDCardDate.Properties.VistaTimeProperties.BeginInit();
            this.dtIDCardDate.Properties.BeginInit();
            this.txtIDCard.Properties.BeginInit();
            this.txtCellPhone.Properties.BeginInit();
            this.txtHomePhone.Properties.BeginInit();
            this.txtContactAddress.Properties.BeginInit();
            this.txtMainAddress.Properties.BeginInit();
            this.cboNationality.Properties.BeginInit();
            this.cboEthnic.Properties.BeginInit();
            this.cheFemale.Properties.BeginInit();
            this.cheMale.Properties.BeginInit();
            this.txtName.Properties.BeginInit();
            this.txtCompany.Properties.BeginInit();
            this.cboHospital.Properties.BeginInit();
            this.layoutControlGroup2.BeginInit();
            this.layoutControlItem3.BeginInit();
            this.layoutControlItem4.BeginInit();
            this.layoutControlItem5.BeginInit();
            this.layoutControlItem7.BeginInit();
            this.layoutControlItem9.BeginInit();
            this.layoutControlItem10.BeginInit();
            this.layoutControlItem11.BeginInit();
            this.layoutControlItem12.BeginInit();
            this.layoutControlItem13.BeginInit();
            this.layoutControlItem14.BeginInit();
            this.layoutControlItem15.BeginInit();
            this.layoutControlItem16.BeginInit();
            this.layoutControlItem17.BeginInit();
            this.layoutControlItem18.BeginInit();
            this.layoutControlItem19.BeginInit();
            this.layoutControlItem20.BeginInit();
            this.layoutControlItem21.BeginInit();
            this.layoutControlItem23.BeginInit();
            this.layoutControlItem26.BeginInit();
            this.layoutControlItem27.BeginInit();
            this.layoutControlItem28.BeginInit();
            this.layoutControlItem29.BeginInit();
            this.layoutControlItem30.BeginInit();
            this.layoutControlItem31.BeginInit();
            this.layoutControlItem32.BeginInit();
            this.layoutControlItem25.BeginInit();
            this.layoutControlItem8.BeginInit();
            this.layoutControlItem33.BeginInit();
            this.layoutControlItem1.BeginInit();
            this.layoutControlItem2.BeginInit();
            this.layoutControlItem34.BeginInit();
            this.layoutControlItem35.BeginInit();
            this.layoutControlItem38.BeginInit();
            this.pnLeft.BeginInit();
            this.pnLeft.SuspendLayout();
            this.barManager1.BeginInit();
            this.repositoryItemImageComboBox1.BeginInit();
            this.repositoryItemComboBox1.BeginInit();
            this.layoutControl5.BeginInit();
            this.layoutControl5.SuspendLayout();
            this.gcList.BeginInit();
            this.gbList.BeginInit();
            this.repCalculator.BeginInit();
            this.layoutControlGroup5.BeginInit();
            this.layoutControlGroup4.BeginInit();
            this.layoutControlItem37.BeginInit();
            this.layoutControlGroup6.BeginInit();
            this.layoutControlItem24.BeginInit();
            ((ISupportInitialize) this.Err).BeginInit();
            base.SuspendLayout();
            this.imageCollection3.ImageStream = (ImageCollectionStreamer) manager.GetObject("imageCollection3.ImageStream");
            this.imageCollection3.Images.SetKeyName(3, "chart_up_color.png");
            this.imageCollection3.Images.SetKeyName(4, "folder_import.png");
            this.imageCollection3.Images.SetKeyName(5, "import.png");
            this.imageCollection3.Images.SetKeyName(6, "line_chart.png");
            this.imageCollection3.Images.SetKeyName(7, "stock_modify_layout.png");
            this.imageCollection3.Images.SetKeyName(8, "download_green.png");
            this.imageCollection3.Images.SetKeyName(9, "move_waiting_down.png");
            this.imageCollection3.Images.SetKeyName(10, "reload16x16.png");
            this.imageCollection3.Images.SetKeyName(11, "delete.png");
            this.imageCollection3.Images.SetKeyName(12, "edit.png");
            this.imageCollection3.Images.SetKeyName(13, "application_vnd_oasis_opendocument_text.png");
            this.txtDescription.Location = new Point(0x342, 0x36);
            this.txtDescription.Name = "txtDescription";
            this.txtDescription.Size = new Size(0xcf, 380);
            this.txtDescription.StyleController = this.layoutControl2;
            this.txtDescription.TabIndex = 6;
            this.txtDescription.EditValueChanged += new EventHandler(this.txtDescription_EditValueChanged);
            this.layoutControl2.Controls.Add(this.xdeBirthday);
            this.layoutControl2.Controls.Add(this.cboPosition);
            this.layoutControl2.Controls.Add(this.txtInterest);
            this.layoutControl2.Controls.Add(this.txtHealthInsuranceCode);
            this.layoutControl2.Controls.Add(this.txtInsuranceCode);
            this.layoutControl2.Controls.Add(this.txtDescription);
            this.layoutControl2.Controls.Add(this.imgPhoto);
            this.layoutControl2.Controls.Add(this.cboStatus);
            this.layoutControl2.Controls.Add(this.calAllowance4);
            this.layoutControl2.Controls.Add(this.txtID);
            this.layoutControl2.Controls.Add(this.calAllowance3);
            this.layoutControl2.Controls.Add(this.calAllowance2);
            this.layoutControl2.Controls.Add(this.calAllowance1);
            this.layoutControl2.Controls.Add(this.calInsuranceSalary);
            this.layoutControl2.Controls.Add(this.txtAddress);
            this.layoutControl2.Controls.Add(this.txtContractType);
            this.layoutControl2.Controls.Add(this.dtContractFromDate);
            this.layoutControl2.Controls.Add(this.dtContractSignDate);
            this.layoutControl2.Controls.Add(this.txtContractCode);
            this.layoutControl2.Controls.Add(this.txtIDCardPlace);
            this.layoutControl2.Controls.Add(this.dtIDCardDate);
            this.layoutControl2.Controls.Add(this.txtIDCard);
            this.layoutControl2.Controls.Add(this.txtCellPhone);
            this.layoutControl2.Controls.Add(this.txtHomePhone);
            this.layoutControl2.Controls.Add(this.txtContactAddress);
            this.layoutControl2.Controls.Add(this.txtMainAddress);
            this.layoutControl2.Controls.Add(this.cboNationality);
            this.layoutControl2.Controls.Add(this.cboEthnic);
            this.layoutControl2.Controls.Add(this.cheFemale);
            this.layoutControl2.Controls.Add(this.cheMale);
            this.layoutControl2.Controls.Add(this.txtName);
            this.layoutControl2.Controls.Add(this.txtCompany);
            this.layoutControl2.Controls.Add(this.cboHospital);
            this.layoutControl2.Location = new Point(3, 0x19);
            this.layoutControl2.Name = "layoutControl2";
            this.layoutControl2.OptionsView.AllowHotTrack = true;
            this.layoutControl2.OptionsView.HighlightDisabledItem = true;
            this.layoutControl2.OptionsView.HighlightFocusedItem = true;
            this.layoutControl2.Root = this.layoutControlGroup2;
            this.layoutControl2.Size = new Size(0x428, 0x187);
            this.layoutControl2.TabIndex = 4;
            this.layoutControl2.Text = "layoutControl2";
            this.xdeBirthday.Day = 1;
            this.xdeBirthday.Location = new Point(0xf8, 30);
            this.xdeBirthday.Month = 1;
            this.xdeBirthday.Name = "xdeBirthday";
            this.xdeBirthday.ReadOnly = false;
            this.xdeBirthday.Size = new Size(0xb6, 20);
            this.xdeBirthday.TabIndex = 0x17;
            this.xdeBirthday.Year = 0x7dd;
            this.cboPosition.Location = new Point(0xd6, 0x10a);
            this.cboPosition.Name = "cboPosition";
            this.cboPosition.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "Th\x00eam", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("cboPosition.Properties.Buttons"), new KeyShortcut(Keys.None), appearance, "", null, null, true) });
            this.cboPosition.Properties.NullText = "[Chọn chức vụ cho nh\x00e2n vi\x00ean]";
            this.cboPosition.Properties.PopupSizeable = true;
            this.cboPosition.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
            this.cboPosition.Size = new Size(0x21e, 0x16);
            this.cboPosition.StyleController = this.layoutControl2;
            this.cboPosition.TabIndex = 12;
            this.cboPosition.ButtonClick += new ButtonPressedEventHandler(this.cbo_ButtonClick);
            this.txtInterest.Location = new Point(0xda, 0x19e);
            this.txtInterest.Name = "txtInterest";
            this.txtInterest.Size = new Size(0x21a, 20);
            this.txtInterest.StyleController = this.layoutControl2;
            this.txtInterest.TabIndex = 0x21;
            this.txtHealthInsuranceCode.Location = new Point(0xd9, 0x16c);
            this.txtHealthInsuranceCode.Name = "txtHealthInsuranceCode";
            this.txtHealthInsuranceCode.Size = new Size(0x21b, 20);
            this.txtHealthInsuranceCode.StyleController = this.layoutControl2;
            this.txtHealthInsuranceCode.TabIndex = 0x1f;
            this.txtInsuranceCode.Location = new Point(0xd9, 340);
            this.txtInsuranceCode.Name = "txtInsuranceCode";
            this.txtInsuranceCode.Size = new Size(0x21b, 20);
            this.txtInsuranceCode.StyleController = this.layoutControl2;
            this.txtInsuranceCode.TabIndex = 30;
            this.imgPhoto.Location = new Point(6, 6);
            this.imgPhoto.Name = "imgPhoto";
            this.imgPhoto.Properties.NullText = "[Chưa c\x00f3 h\x00ecnh]";
            this.imgPhoto.Properties.SizeMode = PictureSizeMode.Zoom;
            this.imgPhoto.Size = new Size(0x70, 0x74);
            this.imgPhoto.StyleController = this.layoutControl2;
            this.imgPhoto.TabIndex = 0x22;
            this.cboStatus.EditValue = "Đang tham gia";
            this.cboStatus.Location = new Point(0x343, 30);
            this.cboStatus.Name = "cboStatus";
            this.cboStatus.Properties.AllowFocused = false;
            this.cboStatus.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboStatus.Properties.Items.AddRange(new object[] { "Đang tham gia", "Chưa tham gia", "Ngưng tham gia" });
            this.cboStatus.Properties.TextEditStyle = TextEditStyles.DisableTextEditor;
            this.cboStatus.Size = new Size(0xce, 20);
            this.cboStatus.StyleController = this.layoutControl2;
            this.cboStatus.TabIndex = 5;
            this.calAllowance4.Location = new Point(570, 0x13c);
            this.calAllowance4.Name = "calAllowance4";
            this.calAllowance4.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calAllowance4.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calAllowance4.Size = new Size(0xba, 20);
            this.calAllowance4.StyleController = this.layoutControl2;
            this.calAllowance4.TabIndex = 0x1d;
            this.txtID.Location = new Point(0x343, 6);
            this.txtID.Name = "txtID";
            this.txtID.Size = new Size(0xce, 20);
            this.txtID.StyleController = this.layoutControl2;
            this.txtID.TabIndex = 4;
            this.txtID.EditValueChanged += new EventHandler(this.txtID_EditValueChanged);
            this.txtID.KeyDown += new KeyEventHandler(this.txtID_KeyDown);
            this.calAllowance3.Location = new Point(0x147, 0x13c);
            this.calAllowance3.Name = "calAllowance3";
            this.calAllowance3.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calAllowance3.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calAllowance3.Size = new Size(0xb2, 20);
            this.calAllowance3.StyleController = this.layoutControl2;
            this.calAllowance3.TabIndex = 0x1c;
            this.calAllowance2.Location = new Point(0x68, 0x13c);
            this.calAllowance2.Name = "calAllowance2";
            this.calAllowance2.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calAllowance2.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calAllowance2.Size = new Size(0x98, 20);
            this.calAllowance2.StyleController = this.layoutControl2;
            this.calAllowance2.TabIndex = 0x1b;
            this.calAllowance1.Location = new Point(0x1d4, 0x124);
            this.calAllowance1.Name = "calAllowance1";
            this.calAllowance1.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calAllowance1.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calAllowance1.Size = new Size(0x120, 20);
            this.calAllowance1.StyleController = this.layoutControl2;
            this.calAllowance1.TabIndex = 0x1a;
            this.calInsuranceSalary.Location = new Point(0x69, 0x124);
            this.calInsuranceSalary.Name = "calInsuranceSalary";
            this.calInsuranceSalary.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.calInsuranceSalary.Properties.Mask.UseMaskAsDisplayFormat = true;
            this.calInsuranceSalary.Size = new Size(0xdf, 20);
            this.calInsuranceSalary.StyleController = this.layoutControl2;
            this.calInsuranceSalary.TabIndex = 0x18;
            this.txtAddress.Location = new Point(0x6a, 0xf2);
            this.txtAddress.Name = "txtAddress";
            this.txtAddress.Size = new Size(650, 20);
            this.txtAddress.StyleController = this.layoutControl2;
            this.txtAddress.TabIndex = 0x16;
            this.txtContractType.Location = new Point(0x1bf, 0xc6);
            this.txtContractType.Name = "txtContractType";
            this.txtContractType.Size = new Size(0x135, 20);
            this.txtContractType.StyleController = this.layoutControl2;
            this.txtContractType.TabIndex = 20;
            this.dtContractFromDate.EditValue = null;
            this.dtContractFromDate.Location = new Point(0x6b, 0xc6);
            this.dtContractFromDate.Name = "dtContractFromDate";
            this.dtContractFromDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dtContractFromDate.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dtContractFromDate.Size = new Size(0x10b, 20);
            this.dtContractFromDate.StyleController = this.layoutControl2;
            this.dtContractFromDate.TabIndex = 0x13;
            this.dtContractSignDate.EditValue = null;
            this.dtContractSignDate.Location = new Point(0x217, 0xae);
            this.dtContractSignDate.Name = "dtContractSignDate";
            this.dtContractSignDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dtContractSignDate.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dtContractSignDate.Size = new Size(0xdd, 20);
            this.dtContractSignDate.StyleController = this.layoutControl2;
            this.dtContractSignDate.TabIndex = 0x12;
            this.txtContractCode.Location = new Point(0x103, 0xae);
            this.txtContractCode.Name = "txtContractCode";
            this.txtContractCode.Size = new Size(0xef, 20);
            this.txtContractCode.StyleController = this.layoutControl2;
            this.txtContractCode.TabIndex = 0x11;
            this.txtIDCardPlace.Location = new Point(0x209, 150);
            this.txtIDCardPlace.Name = "txtIDCardPlace";
            this.txtIDCardPlace.Size = new Size(0xeb, 20);
            this.txtIDCardPlace.StyleController = this.layoutControl2;
            this.txtIDCardPlace.TabIndex = 0x10;
            this.dtIDCardDate.EditValue = null;
            this.dtIDCardDate.Location = new Point(0x15a, 150);
            this.dtIDCardDate.Name = "dtIDCardDate";
            this.dtIDCardDate.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.dtIDCardDate.Properties.VistaTimeProperties.Buttons.AddRange(new EditorButton[] { new EditorButton() });
            this.dtIDCardDate.Size = new Size(120, 20);
            this.dtIDCardDate.StyleController = this.layoutControl2;
            this.dtIDCardDate.TabIndex = 15;
            this.txtIDCard.Location = new Point(0x6a, 150);
            this.txtIDCard.Name = "txtIDCard";
            this.txtIDCard.Size = new Size(0xaf, 20);
            this.txtIDCard.StyleController = this.layoutControl2;
            this.txtIDCard.TabIndex = 14;
            this.txtCellPhone.Location = new Point(530, 0x7e);
            this.txtCellPhone.Name = "txtCellPhone";
            this.txtCellPhone.Size = new Size(0xe2, 20);
            this.txtCellPhone.StyleController = this.layoutControl2;
            this.txtCellPhone.TabIndex = 13;
            this.txtHomePhone.Location = new Point(0xdd, 0x7e);
            this.txtHomePhone.Name = "txtHomePhone";
            this.txtHomePhone.Size = new Size(260, 20);
            this.txtHomePhone.StyleController = this.layoutControl2;
            this.txtHomePhone.TabIndex = 12;
            this.txtContactAddress.Location = new Point(0xf7, 0x66);
            this.txtContactAddress.Name = "txtContactAddress";
            this.txtContactAddress.Size = new Size(0x1fd, 20);
            this.txtContactAddress.StyleController = this.layoutControl2;
            this.txtContactAddress.TabIndex = 11;
            this.txtMainAddress.Location = new Point(0xf8, 0x4e);
            this.txtMainAddress.Name = "txtMainAddress";
            this.txtMainAddress.Size = new Size(0x1fc, 20);
            this.txtMainAddress.StyleController = this.layoutControl2;
            this.txtMainAddress.TabIndex = 10;
            this.cboNationality.Location = new Point(0xf7, 0x36);
            this.cboNationality.Name = "cboNationality";
            this.cboNationality.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboNationality.Size = new Size(0x1fd, 20);
            this.cboNationality.StyleController = this.layoutControl2;
            this.cboNationality.TabIndex = 9;
            this.cboEthnic.Location = new Point(0x1f8, 30);
            this.cboEthnic.Name = "cboEthnic";
            this.cboEthnic.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.cboEthnic.Size = new Size(0xfc, 20);
            this.cboEthnic.StyleController = this.layoutControl2;
            this.cboEthnic.TabIndex = 8;
            this.cheFemale.Enabled = false;
            this.cheFemale.Location = new Point(0x290, 6);
            this.cheFemale.Name = "cheFemale";
            this.cheFemale.Properties.Caption = "Nữ";
            this.cheFemale.Size = new Size(100, 0x13);
            this.cheFemale.StyleController = this.layoutControl2;
            this.cheFemale.TabIndex = 6;
            this.cheMale.Enabled = false;
            this.cheMale.Location = new Point(0x214, 6);
            this.cheMale.Name = "cheMale";
            this.cheMale.Properties.Caption = "Nam";
            this.cheMale.Size = new Size(120, 0x13);
            this.cheMale.StyleController = this.layoutControl2;
            this.cheMale.TabIndex = 5;
            this.txtName.Location = new Point(0x115, 6);
            this.txtName.Name = "txtName";
            this.txtName.Size = new Size(180, 20);
            this.txtName.StyleController = this.layoutControl2;
            this.txtName.TabIndex = 4;
            this.txtCompany.Location = new Point(170, 0xde);
            this.txtCompany.Name = "txtCompany";
            this.txtCompany.Size = new Size(0x24a, 0x10);
            this.txtCompany.StyleController = this.layoutControl2;
            this.txtCompany.TabIndex = 0x15;
            this.txtCompany.TabStop = false;
            this.cboHospital.Location = new Point(0xda, 0x184);
            this.cboHospital.Name = "cboHospital";
            this.cboHospital.Properties.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo), new EditorButton(ButtonPredefines.Glyph, "", -1, true, true, false, ImageLocation.MiddleCenter, (Image) manager.GetObject("cboHospital.Properties.Buttons"), new KeyShortcut(Keys.None), obj3, "", null, null, true) });
            this.cboHospital.Size = new Size(0x21a, 0x16);
            this.cboHospital.StyleController = this.layoutControl2;
            this.cboHospital.TabIndex = 0x20;
            this.cboHospital.TabStop = false;
            this.cboHospital.ButtonClick += new ButtonPressedEventHandler(this.cbo_ButtonClick);
            this.layoutControlGroup2.CustomizationFormText = "Th\x00f4ng tin tờ khai tham gia BHXH, BHYT";
            this.layoutControlGroup2.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup2.ExpandButtonVisible = true;
            this.layoutControlGroup2.GroupBordersVisible = false;
            this.layoutControlGroup2.Items.AddRange(new BaseLayoutItem[] { 
                this.layoutControlItem3, this.layoutControlItem4, this.layoutControlItem5, this.layoutControlItem7, this.layoutControlItem9, this.layoutControlItem10, this.layoutControlItem11, this.layoutControlItem12, this.layoutControlItem13, this.layoutControlItem14, this.layoutControlItem15, this.layoutControlItem16, this.layoutControlItem17, this.layoutControlItem18, this.layoutControlItem19, this.layoutControlItem20, 
                this.layoutControlItem21, this.layoutControlItem23, this.layoutControlItem26, this.layoutControlItem27, this.layoutControlItem28, this.layoutControlItem29, this.layoutControlItem30, this.layoutControlItem31, this.layoutControlItem32, this.layoutControlItem25, this.layoutControlItem8, this.layoutControlItem33, this.layoutControlItem1, this.layoutControlItem2, this.layoutControlItem34, this.layoutControlItem35, 
                this.layoutControlItem38
             });
            this.layoutControlGroup2.Location = new Point(0, 0);
            this.layoutControlGroup2.Name = "layoutControlGroup2";
            this.layoutControlGroup2.Padding = new DevExpress.XtraLayout.Utils.Padding(2, 2, 2, 2);
            this.layoutControlGroup2.ShowInCustomizationForm = false;
            this.layoutControlGroup2.ShowTabPageCloseButton = true;
            this.layoutControlGroup2.Size = new Size(0x417, 440);
            this.layoutControlGroup2.Text = "Th\x00f4ng tin tờ khai tham gia BHXH, BHYT";
            this.layoutControlItem3.AllowHtmlStringInCaption = true;
            this.layoutControlItem3.Control = this.txtName;
            this.layoutControlItem3.CustomizationFormText = "<color=red>[1]</color> Họ v\x00e0 t\x00ean (viết chữ in hoa):";
            this.layoutControlItem3.Location = new Point(0x74, 0);
            this.layoutControlItem3.Name = "layoutControlItem3";
            this.layoutControlItem3.Size = new Size(0x153, 0x18);
            this.layoutControlItem3.Text = "<color=blue>[1]</color> Họ v\x00e0 t\x00ean (viết chữ in hoa):";
            this.layoutControlItem3.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem3.TextSize = new Size(150, 14);
            this.layoutControlItem3.TextToControlDistance = 5;
            this.layoutControlItem4.AllowHtmlStringInCaption = true;
            this.layoutControlItem4.Control = this.cheMale;
            this.layoutControlItem4.CustomizationFormText = ". [2] Giới t\x00ednh:";
            this.layoutControlItem4.Location = new Point(0x1c7, 0);
            this.layoutControlItem4.Name = "layoutControlItem4";
            this.layoutControlItem4.Size = new Size(0xc3, 0x18);
            this.layoutControlItem4.Text = ". <color=blue>[2]</color> Giới t\x00ednh:";
            this.layoutControlItem4.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem4.TextSize = new Size(0x42, 14);
            this.layoutControlItem4.TextToControlDistance = 5;
            this.layoutControlItem5.Control = this.cheFemale;
            this.layoutControlItem5.CustomizationFormText = "layoutControlItem5";
            this.layoutControlItem5.Location = new Point(650, 0);
            this.layoutControlItem5.Name = "layoutControlItem5";
            this.layoutControlItem5.Size = new Size(0x68, 0x18);
            this.layoutControlItem5.Text = "layoutControlItem5";
            this.layoutControlItem5.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem5.TextSize = new Size(0, 0);
            this.layoutControlItem5.TextToControlDistance = 0;
            this.layoutControlItem5.TextVisible = false;
            this.layoutControlItem7.AllowHtmlStringInCaption = true;
            this.layoutControlItem7.Control = this.cboEthnic;
            this.layoutControlItem7.CustomizationFormText = ". [4] D\x00e2n tộc:";
            this.layoutControlItem7.Location = new Point(0x1ac, 0x18);
            this.layoutControlItem7.Name = "layoutControlItem7";
            this.layoutControlItem7.Size = new Size(0x146, 0x18);
            this.layoutControlItem7.Text = ". <color=blue>[4]</color> D\x00e2n tộc:";
            this.layoutControlItem7.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem7.TextSize = new Size(0x41, 14);
            this.layoutControlItem7.TextToControlDistance = 5;
            this.layoutControlItem9.AllowHtmlStringInCaption = true;
            this.layoutControlItem9.Control = this.txtMainAddress;
            this.layoutControlItem9.CustomizationFormText = "[6] Hộ khẩu thường tr\x00fa hoặc tạm tr\x00fa:";
            this.layoutControlItem9.Location = new Point(0x74, 0x48);
            this.layoutControlItem9.Name = "layoutControlItem9";
            this.layoutControlItem9.Size = new Size(0x27e, 0x18);
            this.layoutControlItem9.Text = "<color=blue>[6]</color> Hộ khẩu thường tr\x00fa:  ";
            this.layoutControlItem9.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem9.TextSize = new Size(0x79, 14);
            this.layoutControlItem9.TextToControlDistance = 5;
            this.layoutControlItem10.AllowHtmlStringInCaption = true;
            this.layoutControlItem10.Control = this.txtContactAddress;
            this.layoutControlItem10.CustomizationFormText = "[7] Địa chỉ li\x00ean hệ:";
            this.layoutControlItem10.Location = new Point(0x74, 0x60);
            this.layoutControlItem10.Name = "layoutControlItem10";
            this.layoutControlItem10.Size = new Size(0x27e, 0x18);
            this.layoutControlItem10.Text = "<color=blue>[7]</color> Địa chỉ li\x00ean hệ:           ";
            this.layoutControlItem10.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem10.TextSize = new Size(120, 14);
            this.layoutControlItem10.TextToControlDistance = 5;
            this.layoutControlItem11.AllowHtmlStringInCaption = true;
            this.layoutControlItem11.Control = this.txtHomePhone;
            this.layoutControlItem11.CustomizationFormText = "[8] Số điện thoại li\x00ean hệ (nếu c\x00f3): - Cố định:";
            this.layoutControlItem11.Location = new Point(0, 120);
            this.layoutControlItem11.Name = "layoutControlItem11";
            this.layoutControlItem11.Size = new Size(0x1df, 0x18);
            this.layoutControlItem11.Text = "<color=blue>[8]</color> Số điện thoại li\x00ean hệ (nếu c\x00f3): - Cố định:";
            this.layoutControlItem11.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem11.TextSize = new Size(210, 14);
            this.layoutControlItem11.TextToControlDistance = 5;
            this.layoutControlItem12.Control = this.txtCellPhone;
            this.layoutControlItem12.CustomizationFormText = "Di động:";
            this.layoutControlItem12.Location = new Point(0x1df, 120);
            this.layoutControlItem12.Name = "layoutControlItem12";
            this.layoutControlItem12.Size = new Size(0x113, 0x18);
            this.layoutControlItem12.Text = "Di động:";
            this.layoutControlItem12.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem12.TextSize = new Size(40, 13);
            this.layoutControlItem12.TextToControlDistance = 5;
            this.layoutControlItem13.AllowHtmlStringInCaption = true;
            this.layoutControlItem13.Control = this.txtIDCard;
            this.layoutControlItem13.CustomizationFormText = "[9] Số CMND:";
            this.layoutControlItem13.Location = new Point(0, 0x90);
            this.layoutControlItem13.Name = "layoutControlItem13";
            this.layoutControlItem13.Size = new Size(0x117, 0x18);
            this.layoutControlItem13.Text = "<color=blue>[9]</color> Số CMND:          ";
            this.layoutControlItem13.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem13.TextSize = new Size(0x5f, 14);
            this.layoutControlItem13.TextToControlDistance = 5;
            this.layoutControlItem14.AllowHtmlStringInCaption = true;
            this.layoutControlItem14.Control = this.dtIDCardDate;
            this.layoutControlItem14.CustomizationFormText = ", Ng\x00e0y cấp:";
            this.layoutControlItem14.Location = new Point(0x117, 0x90);
            this.layoutControlItem14.Name = "layoutControlItem14";
            this.layoutControlItem14.Size = new Size(0xb9, 0x18);
            this.layoutControlItem14.Text = ", Ng\x00e0y cấp:";
            this.layoutControlItem14.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem14.TextSize = new Size(0x38, 14);
            this.layoutControlItem14.TextToControlDistance = 5;
            this.layoutControlItem15.AllowHtmlStringInCaption = true;
            this.layoutControlItem15.Control = this.txtIDCardPlace;
            this.layoutControlItem15.CustomizationFormText = ", Nơi cấp:";
            this.layoutControlItem15.Location = new Point(0x1d0, 0x90);
            this.layoutControlItem15.Name = "layoutControlItem15";
            this.layoutControlItem15.Size = new Size(290, 0x18);
            this.layoutControlItem15.Text = ", Nơi cấp:";
            this.layoutControlItem15.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem15.TextSize = new Size(0x2e, 14);
            this.layoutControlItem15.TextToControlDistance = 5;
            this.layoutControlItem16.AllowHtmlStringInCaption = true;
            this.layoutControlItem16.Control = this.txtContractCode;
            this.layoutControlItem16.CustomizationFormText = "[10] Quyết định tuyển dụng, hợp đồng lao động s\x00f4:";
            this.layoutControlItem16.Location = new Point(0, 0xa8);
            this.layoutControlItem16.Name = "layoutControlItem16";
            this.layoutControlItem16.Size = new Size(0x1f0, 0x18);
            this.layoutControlItem16.Text = "<color=blue>[10]</color> Quyết định tuyển dụng, hợp đồng lao động số:";
            this.layoutControlItem16.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem16.TextSize = new Size(0xf8, 14);
            this.layoutControlItem16.TextToControlDistance = 5;
            this.layoutControlItem17.AllowHtmlStringInCaption = true;
            this.layoutControlItem17.Control = this.dtContractSignDate;
            this.layoutControlItem17.CustomizationFormText = "ng\x00e0y:";
            this.layoutControlItem17.Location = new Point(0x1f0, 0xa8);
            this.layoutControlItem17.Name = "layoutControlItem17";
            this.layoutControlItem17.Size = new Size(0x102, 0x18);
            this.layoutControlItem17.Text = "ng\x00e0y:";
            this.layoutControlItem17.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem17.TextSize = new Size(0x1c, 14);
            this.layoutControlItem17.TextToControlDistance = 5;
            this.layoutControlItem18.AllowHtmlStringInCaption = true;
            this.layoutControlItem18.Control = this.dtContractFromDate;
            this.layoutControlItem18.CustomizationFormText = "c\x00f3 hiệu lực từ ng\x00e0y:";
            this.layoutControlItem18.Location = new Point(0, 0xc0);
            this.layoutControlItem18.Name = "layoutControlItem18";
            this.layoutControlItem18.Size = new Size(0x174, 0x18);
            this.layoutControlItem18.Text = "c\x00f3 hiệu lực từ ng\x00e0y:";
            this.layoutControlItem18.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem18.TextSize = new Size(0x60, 14);
            this.layoutControlItem18.TextToControlDistance = 5;
            this.layoutControlItem19.AllowHtmlStringInCaption = true;
            this.layoutControlItem19.Control = this.txtContractType;
            this.layoutControlItem19.CustomizationFormText = "loại hợp đồng";
            this.layoutControlItem19.Location = new Point(0x174, 0xc0);
            this.layoutControlItem19.Name = "layoutControlItem19";
            this.layoutControlItem19.Size = new Size(0x17e, 0x18);
            this.layoutControlItem19.Text = "loại hợp đồng";
            this.layoutControlItem19.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem19.TextSize = new Size(0x40, 14);
            this.layoutControlItem19.TextToControlDistance = 5;
            this.layoutControlItem20.AllowHtmlStringInCaption = true;
            this.layoutControlItem20.Control = this.txtCompany;
            this.layoutControlItem20.CustomizationFormText = "[11] T\x00ean cơ quan, địa chỉ, đơn vị:";
            this.layoutControlItem20.Location = new Point(0, 0xd8);
            this.layoutControlItem20.Name = "layoutControlItem20";
            this.layoutControlItem20.Size = new Size(0x2f2, 20);
            this.layoutControlItem20.Text = "<color=blue>[11]</color> T\x00ean cơ quan, địa chỉ, đơn vị:";
            this.layoutControlItem20.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem20.TextSize = new Size(0x9f, 14);
            this.layoutControlItem20.TextToControlDistance = 5;
            this.layoutControlItem21.AllowHtmlStringInCaption = true;
            this.layoutControlItem21.Control = this.txtAddress;
            this.layoutControlItem21.CustomizationFormText = "[12] Nơi l\x00e0m việc:";
            this.layoutControlItem21.Location = new Point(0, 0xec);
            this.layoutControlItem21.Name = "layoutControlItem21";
            this.layoutControlItem21.Size = new Size(0x2f2, 0x18);
            this.layoutControlItem21.Text = "<color=blue>[12]</color> Nơi l\x00e0m việc:    ";
            this.layoutControlItem21.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem21.TextSize = new Size(0x5f, 14);
            this.layoutControlItem21.TextToControlDistance = 5;
            this.layoutControlItem23.AllowHtmlStringInCaption = true;
            this.layoutControlItem23.Control = this.calInsuranceSalary;
            this.layoutControlItem23.CustomizationFormText = "[14] Lương ch\x00ednh:";
            this.layoutControlItem23.Location = new Point(0, 0x11e);
            this.layoutControlItem23.Name = "layoutControlItem23";
            this.layoutControlItem23.Size = new Size(0x146, 0x18);
            this.layoutControlItem23.Text = "<color=blue>[14]</color> Lương ch\x00ednh:   ";
            this.layoutControlItem23.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem23.TextSize = new Size(0x5e, 14);
            this.layoutControlItem23.TextToControlDistance = 5;
            this.layoutControlItem26.AllowHtmlStringInCaption = true;
            this.layoutControlItem26.Control = this.calAllowance2;
            this.layoutControlItem26.CustomizationFormText = "[15.2] TNN:";
            this.layoutControlItem26.Location = new Point(0, 310);
            this.layoutControlItem26.Name = "layoutControlItem26";
            this.layoutControlItem26.Size = new Size(0xfe, 0x18);
            this.layoutControlItem26.Text = "<color=blue>[15.2]</color=red> TNN:            ";
            this.layoutControlItem26.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem26.TextSize = new Size(0x5d, 14);
            this.layoutControlItem26.TextToControlDistance = 5;
            this.layoutControlItem27.AllowHtmlStringInCaption = true;
            this.layoutControlItem27.Control = this.calAllowance3;
            this.layoutControlItem27.CustomizationFormText = "[15.3] TNVK:";
            this.layoutControlItem27.Location = new Point(0xfe, 310);
            this.layoutControlItem27.Name = "layoutControlItem27";
            this.layoutControlItem27.Size = new Size(0xf9, 0x18);
            this.layoutControlItem27.Text = "<color=blue>[15.3]</color> TNVK:";
            this.layoutControlItem27.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem27.TextSize = new Size(0x3e, 14);
            this.layoutControlItem27.TextToControlDistance = 5;
            this.layoutControlItem28.AllowHtmlStringInCaption = true;
            this.layoutControlItem28.Control = this.calAllowance4;
            this.layoutControlItem28.CustomizationFormText = "[15.4] PCK:";
            this.layoutControlItem28.Location = new Point(0x1f7, 310);
            this.layoutControlItem28.Name = "layoutControlItem28";
            this.layoutControlItem28.Size = new Size(0xfb, 0x18);
            this.layoutControlItem28.Text = "<color=blue>[15.4]</color> PCK:";
            this.layoutControlItem28.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem28.TextSize = new Size(0x38, 14);
            this.layoutControlItem28.TextToControlDistance = 5;
            this.layoutControlItem29.AllowHtmlStringInCaption = true;
            this.layoutControlItem29.Control = this.txtInsuranceCode;
            this.layoutControlItem29.CustomizationFormText = "[16] M\x00e3 số sổ BHXH đ\x00e3 được cấp (nếu c\x00f3):";
            this.layoutControlItem29.Location = new Point(0, 0x14e);
            this.layoutControlItem29.Name = "layoutControlItem29";
            this.layoutControlItem29.Size = new Size(0x2f2, 0x18);
            this.layoutControlItem29.Text = "<color=blue>[16]</color> M\x00e3 số sổ BHXH đ\x00e3 được cấp (nếu c\x00f3): ";
            this.layoutControlItem29.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem29.TextSize = new Size(0xce, 14);
            this.layoutControlItem29.TextToControlDistance = 5;
            this.layoutControlItem30.AllowHtmlStringInCaption = true;
            this.layoutControlItem30.Control = this.txtHealthInsuranceCode;
            this.layoutControlItem30.CustomizationFormText = "[17] Số thẻ BHYT đ\x00e3 được cấp (nếu c\x00f3):";
            this.layoutControlItem30.Location = new Point(0, 0x166);
            this.layoutControlItem30.Name = "layoutControlItem30";
            this.layoutControlItem30.Size = new Size(0x2f2, 0x18);
            this.layoutControlItem30.Text = "<color=blue>[17]</color> Số thẻ BHYT đ\x00e3 được cấp (nếu c\x00f3):     ";
            this.layoutControlItem30.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem30.TextSize = new Size(0xce, 14);
            this.layoutControlItem30.TextToControlDistance = 5;
            this.layoutControlItem31.AllowHtmlStringInCaption = true;
            this.layoutControlItem31.Control = this.cboHospital;
            this.layoutControlItem31.CustomizationFormText = "[18] Nơi đăng k\x00fd kh\x00e1m chữa bệnh ban đầu:";
            this.layoutControlItem31.Location = new Point(0, 0x17e);
            this.layoutControlItem31.Name = "layoutControlItem31";
            this.layoutControlItem31.Size = new Size(0x2f2, 0x1a);
            this.layoutControlItem31.Text = "<color=blue>[18]</color> Nơi đăng k\x00fd kh\x00e1m chữa bệnh ban đầu:";
            this.layoutControlItem31.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem31.TextSize = new Size(0xcf, 14);
            this.layoutControlItem31.TextToControlDistance = 5;
            this.layoutControlItem32.AllowHtmlStringInCaption = true;
            this.layoutControlItem32.Control = this.txtInterest;
            this.layoutControlItem32.CustomizationFormText = "[19] Quyền lợi hưởng BHYT (nếu c\x00f3):";
            this.layoutControlItem32.Location = new Point(0, 0x198);
            this.layoutControlItem32.Name = "layoutControlItem32";
            this.layoutControlItem32.Size = new Size(0x2f2, 0x18);
            this.layoutControlItem32.Text = "<color=blue>[19]</color> Quyền lợi hưởng BHYT (nếu c\x00f3):          ";
            this.layoutControlItem32.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem32.TextSize = new Size(0xcf, 14);
            this.layoutControlItem32.TextToControlDistance = 5;
            this.layoutControlItem25.AllowHtmlStringInCaption = true;
            this.layoutControlItem25.Control = this.calAllowance1;
            this.layoutControlItem25.CustomizationFormText = "[15.1] PCCV:";
            this.layoutControlItem25.Location = new Point(0x146, 0x11e);
            this.layoutControlItem25.Name = "layoutControlItem25";
            this.layoutControlItem25.Size = new Size(0x1ac, 0x18);
            this.layoutControlItem25.Text = "<color=blue>[15]</color> Phụ cấp. <color=blue>[15.1]</color> PCCV:";
            this.layoutControlItem25.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem25.TextSize = new Size(0x83, 14);
            this.layoutControlItem25.TextToControlDistance = 5;
            this.layoutControlItem8.AllowHtmlStringInCaption = true;
            this.layoutControlItem8.Control = this.cboNationality;
            this.layoutControlItem8.CustomizationFormText = ". [5] Quốc tịch:";
            this.layoutControlItem8.Location = new Point(0x74, 0x30);
            this.layoutControlItem8.Name = "layoutControlItem8";
            this.layoutControlItem8.Size = new Size(0x27e, 0x18);
            this.layoutControlItem8.Text = "<color=blue>[5]</color> Quốc tịch:                  ";
            this.layoutControlItem8.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem8.TextSize = new Size(120, 14);
            this.layoutControlItem8.TextToControlDistance = 5;
            this.layoutControlItem33.Control = this.imgPhoto;
            this.layoutControlItem33.CustomizationFormText = "layoutControlItem33";
            this.layoutControlItem33.Location = new Point(0, 0);
            this.layoutControlItem33.Name = "layoutControlItem33";
            this.layoutControlItem33.Size = new Size(0x74, 120);
            this.layoutControlItem33.Text = "layoutControlItem33";
            this.layoutControlItem33.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem33.TextSize = new Size(0, 0);
            this.layoutControlItem33.TextToControlDistance = 0;
            this.layoutControlItem33.TextVisible = false;
            this.layoutControlItem1.AllowHtmlStringInCaption = true;
            this.layoutControlItem1.Control = this.txtID;
            this.layoutControlItem1.CustomizationFormText = "M\x00e3 số <color=red>(*)</color>:";
            this.layoutControlItem1.Location = new Point(0x2f2, 0);
            this.layoutControlItem1.Name = "layoutControlItem1";
            this.layoutControlItem1.Size = new Size(0x11d, 0x18);
            this.layoutControlItem1.Text = "M\x00e3 số <color=red>(*)</color>:       ";
            this.layoutControlItem1.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem1.TextSize = new Size(70, 14);
            this.layoutControlItem1.TextToControlDistance = 5;
            this.layoutControlItem2.AllowHtmlStringInCaption = true;
            this.layoutControlItem2.Control = this.cboStatus;
            this.layoutControlItem2.CustomizationFormText = "Trạng th\x00e1i <color=red>(*)</color>:";
            this.layoutControlItem2.Location = new Point(0x2f2, 0x18);
            this.layoutControlItem2.Name = "layoutControlItem2";
            this.layoutControlItem2.Size = new Size(0x11d, 0x18);
            this.layoutControlItem2.Text = "Trạng th\x00e1i <color=red>(*)</color>:";
            this.layoutControlItem2.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem2.TextSize = new Size(70, 14);
            this.layoutControlItem2.TextToControlDistance = 5;
            this.layoutControlItem34.AllowHtmlStringInCaption = true;
            this.layoutControlItem34.Control = this.txtDescription;
            this.layoutControlItem34.CustomizationFormText = "Ghi ch\x00fa:";
            this.layoutControlItem34.Location = new Point(0x2f2, 0x30);
            this.layoutControlItem34.Name = "layoutControlItem34";
            this.layoutControlItem34.Size = new Size(0x11d, 0x180);
            this.layoutControlItem34.Text = "Ghi ch\x00fa:          ";
            this.layoutControlItem34.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem34.TextSize = new Size(0x45, 14);
            this.layoutControlItem34.TextToControlDistance = 5;
            this.layoutControlItem35.AllowHtmlStringInCaption = true;
            this.layoutControlItem35.Control = this.cboPosition;
            this.layoutControlItem35.CustomizationFormText = "<color=blue>[13]</color> Chức vụ, chức danh nghề, c\x00f4ng việc:";
            this.layoutControlItem35.Location = new Point(0, 260);
            this.layoutControlItem35.Name = "layoutControlItem35";
            this.layoutControlItem35.Size = new Size(0x2f2, 0x1a);
            this.layoutControlItem35.Text = "<color=blue>[13]</color> Chức vụ, chức danh nghề, c\x00f4ng việc:";
            this.layoutControlItem35.TextAlignMode = TextAlignModeItem.AutoSize;
            this.layoutControlItem35.TextSize = new Size(0xcb, 14);
            this.layoutControlItem35.TextToControlDistance = 5;
            this.layoutControlItem38.AllowHtmlStringInCaption = true;
            this.layoutControlItem38.Control = this.xdeBirthday;
            this.layoutControlItem38.CustomizationFormText = "<color=blue>[3]</color> Ng\x00e0y th\x00e1ng năm sinh:";
            this.layoutControlItem38.Location = new Point(0x74, 0x18);
            this.layoutControlItem38.Name = "layoutControlItem38";
            this.layoutControlItem38.Size = new Size(0x138, 0x18);
            this.layoutControlItem38.Text = "<color=blue>[3]</color> Ng\x00e0y th\x00e1ng năm sinh:";
            this.layoutControlItem38.TextSize = new Size(0x7a, 14);
            this.pnLeft.BorderStyle = BorderStyles.NoBorder;
            this.pnLeft.Controls.Add(this.xucListInsurance1);
            this.pnLeft.Dock = DockStyle.Left;
            this.pnLeft.Location = new Point(0, 0x1a);
            this.pnLeft.Name = "pnLeft";
            this.pnLeft.Padding = new System.Windows.Forms.Padding(2);
            this.pnLeft.Size = new Size(210, 0x25e);
            this.pnLeft.TabIndex = 2;
            this.xucListInsurance1.Dock = DockStyle.Fill;
            this.xucListInsurance1.Location = new Point(2, 2);
            this.xucListInsurance1.Name = "xucListInsurance1";
            this.xucListInsurance1.Size = new Size(0xce, 0x25a);
            this.xucListInsurance1.TabIndex = 0;
            this.barManager1.Bars.AddRange(new Bar[] { this.bar1 });
            this.barManager1.DockControls.Add(this.barDockControlTop);
            this.barManager1.DockControls.Add(this.barDockControlBottom);
            this.barManager1.DockControls.Add(this.barDockControlLeft);
            this.barManager1.DockControls.Add(this.barDockControlRight);
            this.barManager1.Form = this;
            this.barManager1.Images = this.imageCollection3;
            this.barManager1.Items.AddRange(new BarItem[] { this.bbiSave, this.bbiClose, this.bbiIncrease, this.bbiDecrease, this.bbiChangeSalary, this.bbiAddHealthInsurance, this.bbiAddUnemploymentInsurance, this.bbiModify, this.bbiPrint, this.bbiPrintDeclarationInsurance, this.bbiPrintAreInsurance, this.bbiPrintNotInsurance, this.bbiPrintAlreadyInsurance, this.bbiFilter, this.bbiReload });
            this.barManager1.MaxItemId = 0x1c;
            this.barManager1.RepositoryItems.AddRange(new RepositoryItem[] { this.repositoryItemComboBox1, this.repositoryItemImageComboBox1 });
            this.bar1.BarName = "Custom 2";
            this.bar1.DockCol = 0;
            this.bar1.DockRow = 0;
            this.bar1.DockStyle = BarDockStyle.Top;
            this.bar1.FloatLocation = new Point(0x3e, 0xa8);
            this.bar1.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiFilter, "", true, true, true, 0, null, BarItemPaintStyle.Standard), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiSave, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiPrint, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiIncrease, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiDecrease, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiChangeSalary, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddHealthInsurance, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiAddUnemploymentInsurance, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiModify, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiReload, "", true, true, true, 0, null, BarItemPaintStyle.CaptionGlyph), new LinkPersistInfo(BarLinkUserDefines.PaintStyle, this.bbiClose, BarItemPaintStyle.CaptionGlyph) });
            this.bar1.OptionsBar.UseWholeRow = true;
            this.bar1.Text = "Custom 2";
            this.bbiFilter.Caption = "Lọc:";
            this.bbiFilter.Edit = this.repositoryItemImageComboBox1;
            this.bbiFilter.EditValue = "";
            this.bbiFilter.Id = 0x1a;
            this.bbiFilter.Name = "bbiFilter";
            this.bbiFilter.Width = 190;
            this.repositoryItemImageComboBox1.AutoHeight = false;
            this.repositoryItemImageComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemImageComboBox1.Items.AddRange(new ImageComboBoxItem[] { new ImageComboBoxItem("<Hiển thị tất cả>", 0, -1), new ImageComboBoxItem("<Danh s\x00e1ch đang tham gia BHXH, BHYT>", 1, -1), new ImageComboBoxItem("<Danh s\x00e1ch chưa tham gia BHXH, BHYT>", 2, -1), new ImageComboBoxItem("<Danh s\x00e1ch tạm ngưng tham gia BHXH, BHYT>", 3, -1) });
            this.repositoryItemImageComboBox1.Name = "repositoryItemImageComboBox1";
            this.repositoryItemImageComboBox1.NullText = "<Chọn...>";
            this.bbiSave.Caption = "Lưu";
            this.bbiSave.Id = 0;
            this.bbiSave.ImageIndex = 1;
            this.bbiSave.ItemShortcut = new BarShortcut(Keys.Control | Keys.S);
            this.bbiSave.Name = "bbiSave";
            item.Text = "Ctrl+S";
            tip.Items.Add(item);
            this.bbiSave.SuperTip = tip;
            this.bbiSave.ItemClick += new ItemClickEventHandler(this.bbiSave_ItemClick);
            this.bbiPrint.Caption = "In";
            this.bbiPrint.Id = 20;
            this.bbiPrint.ImageIndex = 0;
            this.bbiPrint.LinksPersistInfo.AddRange(new LinkPersistInfo[] { new LinkPersistInfo(this.bbiPrintDeclarationInsurance), new LinkPersistInfo(this.bbiPrintAreInsurance, true), new LinkPersistInfo(this.bbiPrintNotInsurance), new LinkPersistInfo(this.bbiPrintAlreadyInsurance) });
            this.bbiPrint.Name = "bbiPrint";
            this.bbiPrintDeclarationInsurance.Caption = "Tờ khai tham gia BHXH, BHYT";
            this.bbiPrintDeclarationInsurance.Id = 0x15;
            this.bbiPrintDeclarationInsurance.ImageIndex = 13;
            this.bbiPrintDeclarationInsurance.Name = "bbiPrintDeclarationInsurance";
            this.bbiPrintDeclarationInsurance.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiPrintAreInsurance.Caption = "Danh s\x00e1ch lao động đang tham gia BHXH, BHYT";
            this.bbiPrintAreInsurance.Id = 0x16;
            this.bbiPrintAreInsurance.Name = "bbiPrintAreInsurance";
            this.bbiPrintAreInsurance.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiPrintNotInsurance.Caption = "Danh s\x00e1ch lao động chưa tham gia BHXH, BHYT";
            this.bbiPrintNotInsurance.Id = 0x17;
            this.bbiPrintNotInsurance.Name = "bbiPrintNotInsurance";
            this.bbiPrintNotInsurance.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiPrintAlreadyInsurance.Caption = "Danh s\x00e1ch lao động tạm ngưng tham gia BHXH, BHYT";
            this.bbiPrintAlreadyInsurance.Id = 0x19;
            this.bbiPrintAlreadyInsurance.Name = "bbiPrintAlreadyInsurance";
            this.bbiPrintAlreadyInsurance.ItemClick += new ItemClickEventHandler(this.bbiPrint_ItemClick);
            this.bbiIncrease.Caption = "Tăng";
            this.bbiIncrease.Id = 9;
            this.bbiIncrease.ImageIndex = 3;
            this.bbiIncrease.Name = "bbiIncrease";
            this.bbiIncrease.ItemClick += new ItemClickEventHandler(this.bbiIncrease_ItemClick);
            this.bbiDecrease.Caption = "Giảm";
            this.bbiDecrease.Id = 10;
            this.bbiDecrease.ImageIndex = 9;
            this.bbiDecrease.Name = "bbiDecrease";
            this.bbiDecrease.ItemClick += new ItemClickEventHandler(this.bbiDecrease_ItemClick);
            this.bbiChangeSalary.Caption = "Điều Chỉnh Lương";
            this.bbiChangeSalary.Id = 11;
            this.bbiChangeSalary.ImageIndex = 6;
            this.bbiChangeSalary.Name = "bbiChangeSalary";
            this.bbiChangeSalary.ItemClick += new ItemClickEventHandler(this.bbiChangeSalary_ItemClick);
            this.bbiAddHealthInsurance.Caption = "Bổ Sung BHYT";
            this.bbiAddHealthInsurance.Id = 12;
            this.bbiAddHealthInsurance.ImageIndex = 5;
            this.bbiAddHealthInsurance.Name = "bbiAddHealthInsurance";
            this.bbiAddHealthInsurance.ItemClick += new ItemClickEventHandler(this.bbiAddHealthInsurance_ItemClick);
            this.bbiAddUnemploymentInsurance.Caption = "Bổ Sung BHTN";
            this.bbiAddUnemploymentInsurance.Id = 13;
            this.bbiAddUnemploymentInsurance.ImageIndex = 4;
            this.bbiAddUnemploymentInsurance.Name = "bbiAddUnemploymentInsurance";
            this.bbiAddUnemploymentInsurance.ItemClick += new ItemClickEventHandler(this.bbiAddUnemploymentInsurance_ItemClick);
            this.bbiModify.Caption = "Điều Chỉnh Hồ Sơ Tham Gia BHXH, BHYT";
            this.bbiModify.Id = 14;
            this.bbiModify.ImageIndex = 7;
            this.bbiModify.Name = "bbiModify";
            this.bbiModify.ItemClick += new ItemClickEventHandler(this.bbiModify_ItemClick);
            this.bbiReload.Caption = "Nạp Lại";
            this.bbiReload.Id = 0x1b;
            this.bbiReload.ImageIndex = 10;
            this.bbiReload.Name = "bbiReload";
            this.bbiReload.ItemClick += new ItemClickEventHandler(this.bbiReload_ItemClick);
            this.bbiClose.Caption = "Đ\x00f3ng";
            this.bbiClose.Id = 2;
            this.bbiClose.ImageIndex = 2;
            this.bbiClose.Name = "bbiClose";
            this.bbiClose.ItemClick += new ItemClickEventHandler(this.bbiClose_ItemClick);
            this.repositoryItemComboBox1.Appearance.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repositoryItemComboBox1.Appearance.Options.UseFont = true;
            this.repositoryItemComboBox1.AppearanceDropDown.Font = new Font("Tahoma", 8.25f, FontStyle.Bold);
            this.repositoryItemComboBox1.AppearanceDropDown.Options.UseFont = true;
            this.repositoryItemComboBox1.AutoHeight = false;
            this.repositoryItemComboBox1.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repositoryItemComboBox1.Items.AddRange(new object[] { "Đang tham gia BHXH", "Chưa tham gia BHXH", "Ngưng tham gia BHXH" });
            this.repositoryItemComboBox1.Name = "repositoryItemComboBox1";
            this.layoutControl5.Controls.Add(this.gcList);
            this.layoutControl5.Controls.Add(this.layoutControl2);
            this.layoutControl5.Dock = DockStyle.Fill;
            this.layoutControl5.Location = new Point(210, 0x1a);
            this.layoutControl5.Name = "layoutControl5";
            this.layoutControl5.Root = this.layoutControlGroup5;
            this.layoutControl5.Size = new Size(0x42e, 0x25e);
            this.layoutControl5.TabIndex = 3;
            this.layoutControl5.Text = "layoutControl5";
            this.gcList.Location = new Point(1, 0x1ba);
            this.gcList.MainView = this.gbList;
            this.gcList.Name = "gcList";
            this.gcList.RepositoryItems.AddRange(new RepositoryItem[] { this.repCalculator });
            this.gcList.Size = new Size(0x42c, 0xa1);
            this.gcList.TabIndex = 6;
            this.gcList.ViewCollection.AddRange(new BaseView[] { this.gbList });
            this.gbList.Appearance.HeaderPanel.Options.UseTextOptions = true;
            this.gbList.Appearance.HeaderPanel.TextOptions.HAlignment = HorzAlignment.Center;
            this.gbList.Appearance.HeaderPanel.TextOptions.WordWrap = WordWrap.Wrap;
            this.gbList.BorderStyle = BorderStyles.NoBorder;
            this.gbList.ColumnPanelRowHeight = 0x20;
            this.gbList.Columns.AddRange(new GridColumn[] { this.colProcessID, this.colFromDate, this.colToDate, this.colDescription, this.colFoundation, this.colSocialInsurance, this.colHealthInsurance });
            this.gbList.GridControl = this.gcList;
            this.gbList.Name = "gbList";
            this.gbList.OptionsSelection.InvertSelection = true;
            this.gbList.OptionsSelection.MultiSelect = true;
            this.gbList.OptionsView.NewItemRowPosition = NewItemRowPosition.Bottom;
            this.gbList.OptionsView.ShowGroupPanel = false;
            this.gbList.KeyDown += new KeyEventHandler(this.gbList_KeyDown);
            this.colProcessID.Caption = "ID";
            this.colProcessID.FieldName = "ProcessID";
            this.colProcessID.Name = "colProcessID";
            this.colProcessID.Width = 0x59;
            this.colFromDate.Caption = "Từ th\x00e1ng năm";
            this.colFromDate.FieldName = "FromDate";
            this.colFromDate.Name = "colFromDate";
            this.colFromDate.Visible = true;
            this.colFromDate.VisibleIndex = 0;
            this.colFromDate.Width = 0x43;
            this.colToDate.Caption = "Đến th\x00e1ng năm";
            this.colToDate.FieldName = "ToDate";
            this.colToDate.Name = "colToDate";
            this.colToDate.Visible = true;
            this.colToDate.VisibleIndex = 1;
            this.colToDate.Width = 0x43;
            this.colDescription.Caption = "Diễn giải";
            this.colDescription.FieldName = "Description";
            this.colDescription.Name = "colDescription";
            this.colDescription.Visible = true;
            this.colDescription.VisibleIndex = 2;
            this.colDescription.Width = 0x15c;
            this.colFoundation.Caption = "Căn cứ đ\x00f3ng";
            this.colFoundation.ColumnEdit = this.repCalculator;
            this.colFoundation.FieldName = "Foundation";
            this.colFoundation.Name = "colFoundation";
            this.colFoundation.Visible = true;
            this.colFoundation.VisibleIndex = 3;
            this.colFoundation.Width = 0x70;
            this.repCalculator.AutoHeight = false;
            this.repCalculator.Buttons.AddRange(new EditorButton[] { new EditorButton(ButtonPredefines.Combo) });
            this.repCalculator.Mask.UseMaskAsDisplayFormat = true;
            this.repCalculator.Name = "repCalculator";
            this.colSocialInsurance.Caption = "Tỷ lệ đ\x00f3ng (%) BHXH";
            this.colSocialInsurance.ColumnEdit = this.repCalculator;
            this.colSocialInsurance.FieldName = "SocialInsurance";
            this.colSocialInsurance.Name = "colSocialInsurance";
            this.colSocialInsurance.Visible = true;
            this.colSocialInsurance.VisibleIndex = 4;
            this.colSocialInsurance.Width = 0x44;
            this.colHealthInsurance.Caption = "Tỷ lệ đ\x00f3ng (%) BHYT";
            this.colHealthInsurance.ColumnEdit = this.repCalculator;
            this.colHealthInsurance.FieldName = "HealthInsurance";
            this.colHealthInsurance.Name = "colHealthInsurance";
            this.colHealthInsurance.Visible = true;
            this.colHealthInsurance.VisibleIndex = 5;
            this.colHealthInsurance.Width = 0x4f;
            this.layoutControlGroup5.CustomizationFormText = "layoutControlGroup5";
            this.layoutControlGroup5.EnableIndentsWithoutBorders = DefaultBoolean.True;
            this.layoutControlGroup5.GroupBordersVisible = false;
            this.layoutControlGroup5.Items.AddRange(new BaseLayoutItem[] { this.layoutControlGroup4, this.layoutControlGroup6 });
            this.layoutControlGroup5.Location = new Point(0, 0);
            this.layoutControlGroup5.Name = "layoutControlGroup5";
            this.layoutControlGroup5.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup5.Size = new Size(0x42e, 0x25e);
            this.layoutControlGroup5.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 2, 2);
            this.layoutControlGroup5.Text = "layoutControlGroup5";
            this.layoutControlGroup5.TextVisible = false;
            this.layoutControlGroup4.CustomizationFormText = "PHỤ LỤC - THỜI GIAN L\x00c0M VIỆC C\x00d3 Đ\x00d3NG BHXH CHƯA HƯỞNG MỘT LẦN";
            this.layoutControlGroup4.ExpandButtonVisible = true;
            this.layoutControlGroup4.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem37 });
            this.layoutControlGroup4.Location = new Point(0, 0x1a1);
            this.layoutControlGroup4.Name = "layoutControlGroup4";
            this.layoutControlGroup4.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup4.Size = new Size(0x42e, 0xb9);
            this.layoutControlGroup4.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 2, 0);
            this.layoutControlGroup4.Text = "PHỤ LỤC - THỜI GIAN L\x00c0M VIỆC C\x00d3 Đ\x00d3NG BHXH CHƯA HƯỞNG MỘT LẦN";
            this.layoutControlItem37.Control = this.gcList;
            this.layoutControlItem37.CustomizationFormText = "layoutControlItem37";
            this.layoutControlItem37.Location = new Point(0, 0);
            this.layoutControlItem37.Name = "layoutControlItem37";
            this.layoutControlItem37.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlItem37.Size = new Size(0x42c, 0xa1);
            this.layoutControlItem37.Text = "layoutControlItem37";
            this.layoutControlItem37.TextSize = new Size(0, 0);
            this.layoutControlItem37.TextToControlDistance = 0;
            this.layoutControlItem37.TextVisible = false;
            this.layoutControlGroup6.CustomizationFormText = "Th\x00f4ng tin tờ khai tham gia BHXH, BHYT";
            this.layoutControlGroup6.ExpandButtonVisible = true;
            this.layoutControlGroup6.Items.AddRange(new BaseLayoutItem[] { this.layoutControlItem24 });
            this.layoutControlGroup6.Location = new Point(0, 0);
            this.layoutControlGroup6.Name = "layoutControlGroup6";
            this.layoutControlGroup6.Padding = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup6.Size = new Size(0x42e, 0x1a1);
            this.layoutControlGroup6.Spacing = new DevExpress.XtraLayout.Utils.Padding(0, 0, 0, 0);
            this.layoutControlGroup6.Text = "TH\x00d4NG TIN TỜ KHAI THAM GIA BHXH, BHYT";
            this.layoutControlItem24.Control = this.layoutControl2;
            this.layoutControlItem24.CustomizationFormText = "layoutControlItem24";
            this.layoutControlItem24.Location = new Point(0, 0);
            this.layoutControlItem24.Name = "layoutControlItem24";
            this.layoutControlItem24.Size = new Size(0x42c, 0x18b);
            this.layoutControlItem24.Text = "layoutControlItem24";
            this.layoutControlItem24.TextSize = new Size(0, 0);
            this.layoutControlItem24.TextToControlDistance = 0;
            this.layoutControlItem24.TextVisible = false;
            this.Err.ContainerControl = this;
            base.AutoScaleDimensions = new SizeF(6f, 13f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x500, 0x278);
            base.Controls.Add(this.layoutControl5);
            base.Controls.Add(this.pnLeft);
            base.Controls.Add(this.barDockControlLeft);
            base.Controls.Add(this.barDockControlRight);
            base.Controls.Add(this.barDockControlBottom);
            base.Controls.Add(this.barDockControlTop);
            base.Name = "xfmDeclaration";
            this.Text = "Tờ Khai Tham Gia BHXH, BHYT";
            base.Load += new EventHandler(this.xfmInsurance_Load);
            this.imageCollection3.EndInit();
            this.txtDescription.Properties.EndInit();
            this.layoutControl2.EndInit();
            this.layoutControl2.ResumeLayout(false);
            this.cboPosition.Properties.EndInit();
            this.txtInterest.Properties.EndInit();
            this.txtHealthInsuranceCode.Properties.EndInit();
            this.txtInsuranceCode.Properties.EndInit();
            this.imgPhoto.Properties.EndInit();
            this.cboStatus.Properties.EndInit();
            this.calAllowance4.Properties.EndInit();
            this.txtID.Properties.EndInit();
            this.calAllowance3.Properties.EndInit();
            this.calAllowance2.Properties.EndInit();
            this.calAllowance1.Properties.EndInit();
            this.calInsuranceSalary.Properties.EndInit();
            this.txtAddress.Properties.EndInit();
            this.txtContractType.Properties.EndInit();
            this.dtContractFromDate.Properties.VistaTimeProperties.EndInit();
            this.dtContractFromDate.Properties.EndInit();
            this.dtContractSignDate.Properties.VistaTimeProperties.EndInit();
            this.dtContractSignDate.Properties.EndInit();
            this.txtContractCode.Properties.EndInit();
            this.txtIDCardPlace.Properties.EndInit();
            this.dtIDCardDate.Properties.VistaTimeProperties.EndInit();
            this.dtIDCardDate.Properties.EndInit();
            this.txtIDCard.Properties.EndInit();
            this.txtCellPhone.Properties.EndInit();
            this.txtHomePhone.Properties.EndInit();
            this.txtContactAddress.Properties.EndInit();
            this.txtMainAddress.Properties.EndInit();
            this.cboNationality.Properties.EndInit();
            this.cboEthnic.Properties.EndInit();
            this.cheFemale.Properties.EndInit();
            this.cheMale.Properties.EndInit();
            this.txtName.Properties.EndInit();
            this.txtCompany.Properties.EndInit();
            this.cboHospital.Properties.EndInit();
            this.layoutControlGroup2.EndInit();
            this.layoutControlItem3.EndInit();
            this.layoutControlItem4.EndInit();
            this.layoutControlItem5.EndInit();
            this.layoutControlItem7.EndInit();
            this.layoutControlItem9.EndInit();
            this.layoutControlItem10.EndInit();
            this.layoutControlItem11.EndInit();
            this.layoutControlItem12.EndInit();
            this.layoutControlItem13.EndInit();
            this.layoutControlItem14.EndInit();
            this.layoutControlItem15.EndInit();
            this.layoutControlItem16.EndInit();
            this.layoutControlItem17.EndInit();
            this.layoutControlItem18.EndInit();
            this.layoutControlItem19.EndInit();
            this.layoutControlItem20.EndInit();
            this.layoutControlItem21.EndInit();
            this.layoutControlItem23.EndInit();
            this.layoutControlItem26.EndInit();
            this.layoutControlItem27.EndInit();
            this.layoutControlItem28.EndInit();
            this.layoutControlItem29.EndInit();
            this.layoutControlItem30.EndInit();
            this.layoutControlItem31.EndInit();
            this.layoutControlItem32.EndInit();
            this.layoutControlItem25.EndInit();
            this.layoutControlItem8.EndInit();
            this.layoutControlItem33.EndInit();
            this.layoutControlItem1.EndInit();
            this.layoutControlItem2.EndInit();
            this.layoutControlItem34.EndInit();
            this.layoutControlItem35.EndInit();
            this.layoutControlItem38.EndInit();
            this.pnLeft.EndInit();
            this.pnLeft.ResumeLayout(false);
            this.barManager1.EndInit();
            this.repositoryItemImageComboBox1.EndInit();
            this.repositoryItemComboBox1.EndInit();
            this.layoutControl5.EndInit();
            this.layoutControl5.ResumeLayout(false);
            this.gcList.EndInit();
            this.gbList.EndInit();
            this.repCalculator.EndInit();
            this.layoutControlGroup5.EndInit();
            this.layoutControlGroup4.EndInit();
            this.layoutControlItem37.EndInit();
            this.layoutControlGroup6.EndInit();
            this.layoutControlItem24.EndInit();
            ((ISupportInitialize) this.Err).EndInit();
            base.ResumeLayout(false);
        }

        private void LoadData()
        {
            this.xucListInsurance1.Clicked += delegate (object s, string value) {
                this.l_Employee.Get(value);
                this.SetData(this.l_Employee);
                this.SetToolBar(this.l_Insurance.GetStatus(value));
                this.gcList.DataSource = this.l_InsuranceProcess.GetList(this.m_EmployeeCode);
            };
            this.xucListInsurance1.LoadData(this.m_Status);
            //if (MyInfo.Get(MyEncryption.Encrypt("ERP01", "123654", true)) == "OK")
            {
                this.txtCompany.Text = "";//MyInfo.Company;
                this.txtAddress.Text = "";//MyInfo.Address;
            }
        }

        private void Reload()
        {
            this.bbiFilter.EditValueChanged += new EventHandler(this.bbiFilter_EditValueChanged);
            this.bbiFilter.EditValue = 0;
            this.InitData();
        }

        private bool Save()
        {
            if (this.txtID.Text == "")
            {
                this.Err.SetError(this.txtID, "M\x00e3 tờ khai kh\x00f4ng được để rỗng!");
                XtraMessageBox.Show("M\x00e3 tờ khai kh\x00f4ng được để rỗng!", "Th\x00f4ng B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.txtID.Focus();
                return false;
            }
            if (!(!this.l_Declaration.Exist(this.txtID.Text) || this.l_Declaration.ExistEmployeeCode(this.m_EmployeeCode)))
            {
                this.Err.SetError(this.txtID, "M\x00e3 tờ khai bị tr\x00f9ng!");
                XtraMessageBox.Show("M\x00e3 tờ khai bị tr\x00f9ng!\nVui l\x00f2ng nhập m\x00e3 tờ khai kh\x00e1c.", "Th\x00f4ng B\x00e1o", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                this.txtID.Focus();
                return false;
            }
            if (!(this.l_Declaration.Exist(this.txtID.Text) || !this.l_Declaration.ExistEmployeeCode(this.m_EmployeeCode)))
            {
                this.l_Declaration.Delete(this.m_EmployeeCode);
            }
            Options.SetWaitDialogCaption("Đang lưu dữ liệu!");
            bool flag = false;
            this.l_Employee = this.InitClass(this.m_EmployeeCode);
            this.l_Employee.Update();
            this.l_Declaration.Update(this.txtID.Text, this.m_EmployeeCode, this.cboStatus.SelectedIndex, this.txtInterest.Text, this.txtDescription.Text);
            this.l_InsuranceProcess.DeleteAll(this.m_EmployeeCode);
            foreach (DataRow row in (this.gcList.DataSource as DataTable).Rows)
            {
                try
                {
                    if (row != null)
                    {
                        this.l_InsuranceProcess.Update(Guid.NewGuid(), this.m_EmployeeCode, System.DateTime.Parse(row["FromDate"].ToString()), System.DateTime.Parse(row["ToDate"].ToString()), row["Description"].ToString(), decimal.Parse(row["Foundation"].ToString()), double.Parse(row["SocialInsurance"].ToString()), double.Parse(row["HealthInsurance"].ToString()));
                    }
                }
                catch
                {
                    flag = true;
                }
            }
            Options.HideDialog();
            if (flag)
            {
                XtraMessageBox.Show("C\x00f3 một số vấn đề xảy ra trong qu\x00e1 tr\x00ecnh lưu dữ liệu!\nMột số dữ liệu c\x00f3 thể sẽ kh\x00f4ng được lưu lại.", "Lỗi", MessageBoxButtons.OK, MessageBoxIcon.Hand);
            }
            return true;
        }

        public void SetData(HRM_EMPLOYEE item)
        {
            this.m_EmployeeCode = item.EmployeeCode;
            this.txtName.Text = item.FirstName + " " + item.LastName;
            if (item.Sex)
            {
                this.cheMale.Checked = true;
                this.cheFemale.Checked = false;
            }
            else
            {
                this.cheMale.Checked = false;
                this.cheFemale.Checked = true;
            }
            this.xdeBirthday.Day = item.BirthdayDay;
            this.xdeBirthday.Month = item.BirthdayMonth;
            this.xdeBirthday.Year = item.BirthdayYear;
            this.txtMainAddress.Text = item.MainAddress;
            this.txtContactAddress.Text = item.ContactAddress;
            this.txtCellPhone.Text = item.CellPhone;
            this.txtHomePhone.Text = item.HomePhone;
            this.imgPhoto.Image = item.Photo;
            this.cboNationality.Text = item.Nationality;
            this.cboEthnic.Text = item.Ethnic;
            this.txtIDCard.Text = item.IDCard;
            this.dtIDCardDate.DateTime = item.IDCardDate;
            this.txtIDCardPlace.Text = item.IDCardPlace;
            this.cboPosition.Text = item.Position;
            this.calInsuranceSalary.EditValue = item.InsuranceSalary;
            this.calAllowance1.EditValue = item.Allowance1;
            this.calAllowance2.EditValue = item.Allowance2;
            this.calAllowance3.EditValue = item.Allowance3;
            this.calAllowance4.EditValue = item.Allowance4;
            this.txtInsuranceCode.Text = item.InsuranceCode;
            this.txtHealthInsuranceCode.Text = item.HealthInsuranceCode;
            this.cboHospital.Text = item.Hospital;
            this.txtContractCode.Text = item.ContractCode;
            this.txtContractType.Text = item.ContractType;
            this.dtContractSignDate.DateTime = item.ContractSignDate;
            this.dtContractFromDate.DateTime = item.ContractFromDate;
            if (this.l_Declaration.ExistEmployeeCode(this.m_EmployeeCode))
            {
                this.l_Declaration.Get(item.EmployeeCode);
                this.txtID.Text = this.l_Declaration.DeclarationCode;
                this.cboStatus.SelectedIndex = this.l_Declaration.Status;
                this.txtInterest.Text = this.l_Declaration.Interest;
                this.txtDescription.Text = this.l_Declaration.Description;
            }
            else
            {
                this.txtID.Text = "";
                this.cboStatus.SelectedIndex = 0;
                this.txtInterest.Text = "";
                this.txtDescription.Text = "";
            }
        }

        private void SetToolBar(int Status)
        {
            if (Status == 0)
            {
                this.bbiIncrease.Enabled = false;
                this.bbiDecrease.Enabled = true;
                this.bbiChangeSalary.Enabled = true;
                this.bbiAddHealthInsurance.Enabled = true;
                this.bbiAddUnemploymentInsurance.Enabled = true;
                this.bbiModify.Enabled = true;
            }
            else if ((Status == 1) || (Status == 2))
            {
                this.bbiIncrease.Enabled = true;
                this.bbiDecrease.Enabled = false;
                this.bbiChangeSalary.Enabled = false;
                this.bbiAddHealthInsurance.Enabled = false;
                this.bbiAddUnemploymentInsurance.Enabled = false;
                this.bbiModify.Enabled = false;
            }
            this.cboStatus.SelectedIndex = Status;
        }

        private void txtDescription_EditValueChanged(object sender, EventArgs e)
        {
        }

        private void txtID_EditValueChanged(object sender, EventArgs e)
        {
            TextEdit control = (TextEdit) sender;
            if (control.ErrorText != string.Empty)
            {
                this.Err.SetError(control, string.Empty);
            }
            if (!this.l_Declaration.ExistEmployeeCode(this.m_EmployeeCode) && this.l_Declaration.Exist(control.Text))
            {
                this.Err.SetError(control, "M\x00e3 đ\x00e3 tồn tại.");
                control.Focus();
            }
        }

        private void txtID_KeyDown(object sender, KeyEventArgs e)
        {
            TextEdit control = (TextEdit) sender;
            if (((e.KeyCode == Keys.Enter) | (e.KeyCode == Keys.Tab)) && (!this.l_Declaration.ExistEmployeeCode(this.m_EmployeeCode) && this.l_Declaration.Exist(control.Text)))
            {
                this.Err.SetError(control, "M\x00e3 đ\x00e3 tồn tại.");
                control.Focus();
            }
        }

        private void xfmInsurance_Load(object sender, EventArgs e)
        {
        }
    }
}

